<template>
  <div>
    <div class="zhezao" v-if="flag">
      <div class="t_w">
        <!--右上角图标开始-->

        <!--右上角图标结束-->

        <!--弹出框开始-->
        <div class="tanchu_div">
          <div>
            <div class="el-message-box message-logout">
              <div class="el-message-box__header">
                <div class="el-message-box__title">
                  <!----><span>提示</span>
                </div>
                <button
                  type="button"
                  aria-label="Close"
                  class="el-message-box__headerbtn"
                >
                  <i class="el-message-box__close el-icon-close"></i>
                </button>
              </div>
              <div class="el-message-box__content">
                <!---->
                <div class="el-message-box__message">
                  <p>{{ title }}</p>
                </div>
                <slot></slot>

                <div class="el-message-box__input" style="display: none">
                  <div class="el-input">
                    <!----><input
                      type="text"
                      autocomplete="off"
                      placeholder=""
                      class="el-input__inner"
                    /><!----><!----><!----><!---->
                  </div>
                  <div
                    class="el-message-box__errormsg"
                    style="visibility: hidden"
                  ></div>
                </div>
              </div>
              <div class="el-message-box__btns">
                <button
                  @click="conceal(false)"
                  type="button"
                  class="el-button el-button--default el-button--small"
                >
                  <!----><!----><span> 取消 </span></button
                ><button
				style="margin-left:10rpx;margin-right: 10rpx;color:#fff;background-color: #409eff;"
                  type="button"
                  class="el-button el-button--default el-button--small el-button--primarybg"
                  @click="conceal(true)"
                >
                  <!----><!----><span > 确定 </span>
                </button>
              </div>
            </div>
            <!--确定结束-->
          </div>
        </div>
        <!--弹出框结束-->
      </div>
    </div>
    <!-- <div @click="show">点我显示</div> -->
  </div>
</template>
<script>
export default {
  name: "zc-alert",
  props: {
    flag: {
      type: Boolean,
      default: false,
    },
    title: {
      type: String,
      default: "请先登录",
    },
  },
  data() {
	  return {
		  
	  }
  },
  methods: {
    // 遮罩层隐藏
    conceal(dep) {
      this.$emit("comfig", dep);
    },
  },
};
</script>

<style lang="less" scoped>
.zhezao {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1000;
}
.t_w {
  position: relative;
}
.tanchu_view {
  width: 80%;
  margin: 25% auto;
  overflow: hidden;
  background-color: #fff1e6;
  border-radius: 10rpx;
  padding: 4rpx;
}

.bg_view {
  margin: 30rpx auto 30rpx auto;
  color: #fcb712;
  font-size: 50rpx;
  background-color: #fff1e6;
  padding: 0rpx 30rpx;
  text-align: center;
}

.txtys {
  font-size: 50rpx;
  text-align: center;
  margin-bottom: 200rpx;
}

.txtsure {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  margin: 20rpx;
}

/*确定背景*/
.txtsurebg {
  width: 300rpx;
  height: 300rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 50rpx;
  background-color: burlywood;
  flex-direction: column;
}

/*确定图标*/
.txtsureimg {
  display: block;
  width: 120rpx;
  height: 120rpx;
}

/*确定文本*/
.txtsurename {
  margin-bottom: 0rpx;
  color: white;
  font-size: 70rpx;
}

/*右上角图标*/
.t_image {
  width: 204rpx;
  height: 200rpx;
  position: absolute;
  top: -6%;
  left: 88%;
}

/*右上角图标*/
.t_image1 {
  display: block;
  width: 60rpx;
  height: 60rpx;
}

.tanchu_div {
  width: 80%;
  display: inline-block;
  padding-bottom: 10px;
  vertical-align: middle;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #ebeef5;
  font-size: 18px;
  -webkit-box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  text-align: left;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
}
.el-message-box__header {
  position: relative;
  padding: 15px 15px 10px;
}
.el-message-box__title {
  padding-left: 0;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1;
  color: #303133;
}
.el-message-box__headerbtn {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0;
  border: none;
  outline: 0;
  background: 0 0;
  font-size: 16px;
  cursor: pointer;
}
.el-message-box__message {
  padding: 0 10px;
  margin-bottom: 20px;
  p {
    margin: 0;
    line-height: 24px;
    font-size: 14px;
  }
}
.el-message-box__btns {
  display: flex;
  justify-content: flex-end;
}
.el-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  -webkit-transition: 0.1s;
  transition: 0.1s;
  font-weight: 500;
  padding: 16rpx 24rpx;
  font-size: 14px;
  border-radius: 4px;
  span {
    font-size: 12px;
  }
}
.el-message-box__content {
  margin-top: 20px;
}
.bg {
  background: #409eff;
  margin-left: 10px;
  margin-right: 10px;
}
</style>

